package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IDayRed
import fhp.hlhj.giantfold.javaBean.GetRedBean
import fhp.hlhj.giantfold.module.DayRedModule

/**
 * Created by Administrator on 2018\2\10 0010.
 */
class DayRedPresenter(private val iDayRed: IDayRed) : DayRedModule.OnDayRedOnResp {

    private val module=DayRedModule()

    fun getDayRed(params: HttpParams){
        module.getRed(params,this)
    }



    override fun showLoading() {
        iDayRed.showLoading()
    }

    override fun onResp(t: GetRedBean) {
        iDayRed.onResp(t)
    }

}